﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace Weazel.Gezel.Model.Errors
{
  /// <summary>
  /// Base type for ParseError and VerificationError.
  /// </summary>
  public abstract class Error
  {
    protected ErrorMessage errorMessage;
    public ErrorMessage ErrorMessage
    {
      get { return errorMessage; }
    }

    public Error(ErrorMessage message)
    {
      this.errorMessage = message;
    }

    public Error()
    {
      this.errorMessage = null;
    }
  }
}
